package edu.mtu.citizenscience.cs.sdk.login;
/**
 * @author Corbin Uselton <corbinu@cwuselto@mtu.edu>
 * @copyright (c) 2012 MichiganTech <http://www.mtu.edu>
 * @since 1.0
 * 
 * Stores a users citsci login
 */
public class UserLogin {
	// the users username or email
	private String username = "";
	// the users remote key
	private String key = "";
	
	/**
	 * Check if the UserLogin has been loaded
	 * 
	 * @param void
	 * @return boolean - whether have the user login or not
	 */
	public boolean haveLogin()
	{
		return ((this.username != "") && (this.key !=""));
	}
	
	/**
	 * Get the username
	 * 
	 * @param void
	 * @return String - username
	 */
	public String getUsername() 
	{
		return username;
	}
	
	/**
	 * Set the username
	 * 
	 * @param username - String - username
	 * @return void
	 */
	public void setUsername(String username) 
	{
		this.username = username;
	}
	
	/**
	 * Get the remote key
	 * 
	 * @param void
	 * @return String - remote key
	 */
	public String getKey() 
	{
		return key;
	}
	
	/**
	 * Set the remote key
	 * 
	 * @param key - String - remote key
	 * @return void
	 */
	public void setKey(String key) 
	{
		this.key = key;
	}

}